package com.lizhi.yun;

import com.lizhi.common.yun.common.Constants;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @Author: lizhi
 * @Description:
 * @Date: create in 2020/11/9 14:41
 */
@EnableSwagger2
@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages="com.lizhi")
public class WebApplication {

    public static void main(String[] args) {
        /**  配置加解密跟秘钥，与配置文件的密文分开放  */
        System.setProperty("jasypt.encryptor.algorithm", Constants.Jasypt.JASYPT_ALGORITHM);
        System.setProperty("jasypt.encryptor.password", Constants.Jasypt.JASYPT_PASSWORD);

        SpringApplication.run(WebApplication.class, args);
    }
}
